const http=require('http');
const url=require('url');

let server=http.createServer((req,res)=>{
    let {pathname,query}=url.parse(req.url,true)
    console.log(`接收到了数据`,pathname,query)
    res.end()
})
server.listen(8080)